﻿#pragma once
#include "SOneList.h"
#include "Components/Widget.h"
#include "UOneListUMG.generated.h"

UCLASS()
class UOneListUMG: public UWidget
{
	GENERATED_BODY()
public:
	UOneListUMG();
	
	//加载界面
	virtual TSharedRef<SWidget> RebuildWidget() override;
	//UMG列表栏
	virtual const FText GetPaletteCategory() ;
	
	//面板设置完毕后会触发此事件,字面的意思是同步属性
	virtual void SynchronizeProperties() override;
	//资源释放
	virtual void ReleaseSlateResources(bool bReleaseChildren) override;
	//更新信息
	
	UFUNCTION(BlueprintCallable, Category = "Appearance")
	void UpDataList(int width,TMap<FString,float> ListData);
public:
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "标题", meta = (DisplayName = "表格标题名字"))
	FString Title = "";
	
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "显示折线")
	bool ShowYuan = false;
	//表格主体
	TSharedPtr<SOneList> OneList;
};
